package net.qhzw.vip.qiyu.model;


import lombok.Data;

import java.math.BigDecimal;
import java.util.Comparator;

@Data
public class SysWarningVo implements Comparator<SysWarningVo> {

    private String realName;
    private String mobile;
    private String idCard;
    private Long carRentalId;
    private BigDecimal balance;
    private BigDecimal deposit;
    private String contractNo;
    private Byte warrantyStatus;
    private String numberPlate;
    private String frameNumber;
    private String vehicleNumber;
    private Long guaranteeUserId;
    private Byte guaranteeStatus;
    private Byte type;
    private String communityName;
    private String adminName;
    private String guaranteeCompanyName;
    private String siteName;


    @Override
    public int compare(SysWarningVo o1, SysWarningVo o2) {
        if (o1.getGuaranteeStatus().intValue() > o2.getGuaranteeStatus()) {
            return 1;
        }
        return -1;
    }
}
